home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 119 / maccd 119.iso / Utilities / Mac OS X / StartupSoundPrefPane101.dmg / StartupSoundPrefPane.pkg / Contents / Resources / InstallationCheck < prev    next >
Encoding:
Paul Falstad's zsh script  |  2004-03-01  |  418 b   |  18 lines

  1. #!/bin/zsh
  2.  
  3. OLDEST_VERSION="10.2"
  4. SCRIPT_NAME="InstallationCheck"
  5.  
  6. VERSION=$(sw_vers | sed -e '/ProductVersion:/!d' | sed -e 's/[[:alnum:]]*:[[:space:]]*//')
  7. if [ -z "${VERSION}" ]; then
  8.     echo ${SCRIPT_NAME}: Could not get system version!
  9.     exit 100
  10. fi
  11.  
  12. if command [ "${VERSION}" '<' "${OLDEST_VERSION}" ]; then
  13.     echo ${SCRIPT_NAME}: Too old system! Version ${OLDEST_VERSION} or later is required.
  14.     exit 99
  15. fi
  16.  
  17. exit 0;
  18.